import Button from "components/Base/Button";
import Icon from "components/Base/Icon";
import DataTable from "components/Base/DataTable";
import {refundDict} from "../../../../models/RefundStatus";

export default (self) => [

  {
    title: '退款订单号',
    name: 'outRefundNo',
    tableItem: {},
  },

  {
    title: '支付订单号',
    name: 'outTradeNo',
    tableItem: {},
  },

  {
    title: '订单总金额',
    name: 'totalFee',
    tableItem: {},
  },

  {
    title: '申请退款金额',
    name: 'refundFee',
    tableItem: {},
  },

  {
    title: '实际退款金额',
    name: 'settlementRefundFee',
    tableItem: {},
  },

  {
    title: '退款状态',
    name: 'refundStatus',
    dict: refundDict,
    tableItem: {},
  },
  {
    title: '退款成功时间',
    name: 'successTime',
    tableItem: {},
  },
  {
    title: '退款入账账户',
    name: 'refundRecvAccout',
    tableItem: {},
  },
  {
    title: '退款资金来源',
    name: 'refundAccount',
    tableItem: {},
  },

  // {
  //   title: '操作',
  //   tableItem: {
  //     width: 180,
  //     align: 'center',
  //     render: (text, record) => (
  //       <DataTable.Oper>
  //         <Button tooltip="修改" onClick={e => self.onUpdate(record)}>
  //           <Icon type="edit"/>
  //         </Button>
  //         <Button tooltip="删除" onClick={e => self.onDelete(record)}>
  //           <Icon type="trash"/>
  //         </Button>
  //       </DataTable.Oper>
  //     )
  //   }
  // }
]
